import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSGangFightsTeamHelper } from "./SeqSGangFightsTeamHelper";
import { SEntityId } from "./SEntityId";
type int = number;
//class SGangFightsToplist
    
    export  class SGangFightsToplist extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGangFightsToplist();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.page);
            arg1.writeInt(this.pageSize);
            arg1.writeInt(this.pageNum);
            arg1.writeInt(this.orderObjType);
            arg1.writeBool(this.onlyMyServer);
            arg1.writeBool(this.showMyPos);
            SeqSGangFightsTeamHelper.write(arg1, this.teams);
            this.entityId.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.page = arg1.readInt();
            this.pageSize = arg1.readInt();
            this.pageNum = arg1.readInt();
            this.orderObjType = arg1.readInt();
            this.onlyMyServer = arg1.readBool();
            this.showMyPos = arg1.readBool();
            this.teams = SeqSGangFightsTeamHelper.read(arg1);
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            return;
        }

        public /* const */_type: int=505;

        public /* var */page: int;

        public /* var */pageSize: int;

        public /* var */pageNum: int;

        public /* var */orderObjType: int;

        public /* var */onlyMyServer: Boolean;

        public /* var */showMyPos: Boolean;

        public /* var */teams: Array<any>;

        public /* var */entityId: SEntityId;

        public static /* var */_regist: SGangFightsToplist;
    }

            SGangFightsToplist._regist = new SGangFightsToplist(true);
        